<template>
	<view class="about-container">
		<custom-nav title="关于我们" :isShowBg="false" :isBlack="true" :isShowLeft="true"></custom-nav>
		<view class="center">
			<img src="/schoolCube/static/img/logo.png" alt="" class="logo"> 
			<view class="version">
				版本号：{{version}}
			</view>
		</view>
		<view class="info">
			<!-- <view class="company">
				<view class="title">公司介绍</view>
				<view class="right" @click="goText">
					<img src="/schoolCube/static/svg/right.svg" alt="" class="icon">
				</view>
			</view> -->
			<view class="user-agreement">
				<view class="title">用户协议</view>
				<view class="right" @click="goAgreement(1)">
					<img src="/schoolCube/static/svg/right.svg" alt="" class="icon">
				</view>
			</view>
			<view class="privacy-agreement">
				<view class="title">隐私协议</view>
				<view class="right" @click="goAgreement(2)">
					<img src="/schoolCube/static/svg/right.svg" alt="" class="icon">
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				version: 'v1.0.0.1'
			}
		},
		methods: {
			goAgreement(type){
				uni.navigateTo({
					url: `/pages/user/text?type=${type}`
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.center {
		display: flex;
		flex-direction: column;
		width: 100%;
		justify-content: center;
		align-items: center;
		color: #3d3d3d;
		font-size: 28rpx;
		margin-bottom: 50rpx;

		.logo {
			width: 180rpx;
			height: 180rpx;
			border-radius: 20rpx;
			margin-top: 100rpx;
			margin-bottom: 20rpx;
		}
	}

	.info>view {
		margin: 0 30rpx;
		height: 76rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 32rpx;
		color: #333;
		border-bottom: 2rpx solid #d8d8d8;
		.title{
			display: flex;
			align-items: center;
			height: 100%;
		}
		.right{
			display: flex;
			height: 100%;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: flex-end;
		}
	}

	.icon {
		width: 36rpx;
		height: 36rpx;
	}
</style>